package com.blog.cloud.gateway.constants;

/**
 * Token常量类
 *
 * @author 龙茶清欢
 * @since 2022-11-06 12:30:55
 */
public class TokenConstant {

    /**
     * JWT签名密钥，将 龙茶清欢 Base64加密值
     */
    public static final String SIGN_KEY = "6b6Z6Iy25riF5qyi";

    /**
     * token过期时间
     */
    public static final Long EXPIRATION_DATE = 36000L;

    /**
     * token在请求头中的标识key
     */
    public final static String AUTHORIZATION = "Authorization";

    public static final String ACCESS_TOKEN = "access_token";

    public static final String REFRESH_TOKEN = "refresh_token";

    /**
     * token前缀
     */
    public final static String TOKEN_PREFIX = "Bearer ";

    /**
     * token签发人
     */
    public final static String TOKEN_ISSUER = "龙茶清欢";
}